package com.liliudong.pinkyponk.core.constant;

/**
 * Response message
 *
 * @author liliudong
 * @date 2022-06-01 11:18
 **/
public enum ResponseMessage {
    /**
     * ResponseMessage
     */
    OK("Ok", 0),
    ERROR("Error", -1),
    NO_PERMISSION("NO PERMISSION", 1000),
    USERNAME_NOT_FOUND("Username not found", 1001),
    USER_LOCKED("User is locked", 1002),
    PASSWORD_INCORRECT("The password is incorrect", 1003),
    TOKEN_NOT_EXIST("Token not exist", 1004),
    TOKEN_NOT_VALIDATION("token not validation", 1005),
    TOKEN_IS_EXPIRED("Token is expired", 1006),
    CLASS_NOT_FOUND_EXCEPTION("Class not found", 1000);

    ResponseMessage(String message, int code) {
        this.message = message;
        this.code = code;
    }

    public final String message;
    public final int code;
}
